package reflect;

import annotation.LovoAnnotation;

@LovoAnnotation(value="张三",likes={"篮球","足球"})
public class Student extends Person{
    @LovoAnnotation(value="李四",likes="游泳")
    private Integer id;
    private String name;
    private Integer age;
    private String gender;
    public Student(){

    }
    public Student(Integer id,String name,Integer age){
        this.id = id;
        this.name = name;
        this.age = age;
    }
    @Override
    @Deprecated
    public void introduce(){
        System.out.println("我叫" + this.name + ",今年" + this.age + "岁");
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                '}';
    }
}
